package groups

import (
	"github.com/gin-gonic/gin"
)

func Register(api *gin.RouterGroup) {
	gr := api.Group("/groups")
	{
		gr.GET("", Search)
		gr.POST("", CreateOrUpdate)
		gr.PUT("/:id", Update)
		gr.DELETE("/:id", Delete)
	}
}
